package com.cskaoyan.mall.service;

import com.cskaoyan.mall.dao.AdminDao;
import com.cskaoyan.mall.dao.AdminDaoImpl;
import com.cskaoyan.mall.model.Admin;

import java.util.List;

/**
 * @PackgeName: com.cskaoyan.mall.service
 * @ClassName: AdminServiceImpl
 * @Author: admin
 * Date: 2020/4/29 21:49
 * project name: Javaproject1
 * @Version:
 * @Description:
 */
public class AdminServiceImpl implements AdminService {

    private AdminDao adminDao = new AdminDaoImpl();

    public int login(Admin admin) {

        return adminDao.login(admin);
    }

    @Override
    public List<Admin> allAdmins() {

        return adminDao.allAdmins();
    }

    @Override
    public int addAdminss(Admin admin) {
        return adminDao.addAdminss(admin);
    }

    @Override
    public List<Admin> getSearchAdmins(Admin admin) {
        return adminDao.getSearchAdmins(admin);
    }

    @Override
    public int updateAdminss(Admin admin) {
        return adminDao.updateAdminss(admin);
    }
}
